import Vue from 'vue';
import VueRouter from 'vue-router';
import HelloWorld from '../views/helloword';
import Jia from '../views/jia';
import Suanfa from '../views/suanfa';
import Biao from '../views/biao';
import Db from '../views/db';

Vue.use(VueRouter);

// 创建并暴露一个路由器
export default new VueRouter({
    mode: 'history', // 设置为 history 模式
    routes: [
        {
            path: '/helloworld',
            component: HelloWorld,
        },
        {
            path: '/jia',
            component: Jia,
        },{
            path: '/suanfa',
            component: Suanfa,
        },{
            path: '/biao',
            component: Biao,
        },
        {
            path: '/db',
            component: Db,
        },
    ]
});